<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1"/>
  <title>{$agency->webname}后台登录</title>
  <script src="/static/home/summer/js/fss.min.js"></script>
  <script src="/static/home/summer/js/fss_configuration.js"></script>
  <link rel="stylesheet" href="/@system/css/login.css">
  <!--[if IE]>
  <style>
    .wp-logo, .wp-login-title, .wp-login-form {
      opacity: 1 !important;
    }
  </style>
  <![endif]-->

</head>
<body style="background-image: url('/@system/css/bg-login.png');">
<div class="wp-login">
  <div class="wp-login-title">
    <h1 style="color: #ccc;
  text-shadow: -1px -1px 0 #fff,1px 1px 0 #333,1px 1px 0 #444; ">{$agency->webname}员工登录</h1>
    <p>
      <span>开启移动互联网之梦</span>
    </p>
  </div>
  <form action="" class="form-hor clearfix J-tips" id="registerform" autocomplete="off" method="post">
    <p class="wp-verify"><b class="error_top"></b></p>
    <div class="wp-login-form">
      <input type="text" name="username" tabindex="1" class="wp-login-input" placeholder="员工登录名" autocomplete="off" maxlength="100">
      <input type="password" name="password" tabindex="2" class="wp-login-input" placeholder="密码" maxlength="20" autocomplete="off">
      <div style=" display:block; width:100%">
        <input type="submit" id="signin-btn" onclick="return false;" value="登     录" style="width:100%;"/>
      </div>
      <div style="display:block; width:100%;text-align: left;">
        <a href="login.html">&lt;&lt;&lt;返回商户登录</a>
      </div>
    </div>
  </form>
</div>

<div class="background"></div>
<div id="container" class="container" style=" color:">
  <div id="output" class="container"></div>
</div>
</body>
<script>
  change_bg_3d('#4876FF', '#104E8B');

  function verify(id, background) {
    $(id).focus(function () {
      $(this).css({
        'background-image': 'none'
      });
    }).blur(function () {
      if ($(this).val() == '') $(this).css({
        'background-image': background
      });
    });
  }

  $(function () {
    delete localStorage["dialog_show"];
  });

  function register() {
    window.location = '/register.html';
  }
  $('#signin-btn').on('click',function  () {
    var formData=$('#registerform').serializeArray();
    $.ajax({
      url:'',
      method:'POST',
      data:formData,
      success:function  (resp) {
        console.log(resp);
        if(resp.status=='success'){
          location.href=resp.data;
        }else{
          alert(resp.msg || '登录失败');
        }
      }
    })
  });
</script>
</html>